package test.junit;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;

import com.eflying.book.dao.BookDao;
import com.eflying.pager.Expression;

public class testExpressionDao {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Test
	public void testBookDao() {
		BookDao bookDao = new BookDao();
		List<Expression> list = new ArrayList<Expression>();
		list.add(new Expression("bid","=","1"));
		list.add(new Expression("bname","like","我草"));
		try {
			bookDao.findByCriteria(list,10);
		} catch (SQLException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
